pub const Article = struct {
    id: u32,
    title: []const u8,
    description: []const u8,
    content: []const u8,
    istop: u32,
    cate_name: []const u8,
    created_at: []const u8,
    updated_at: []const u8,
};

/// 用于存放归档文章信息
pub const ArchiveArticle = struct {
    id: u32,
    title: []const u8,
    cate_name: []const u8,
    created_at: []const u8,
};

/// 用于创建文章
pub const ArticleDtoForCreate = struct {
    title: []const u8,
    description: []const u8,
    content: []const u8,
    istop: u32,
    cate_name: []const u8,
    created_at: []const u8,
    updated_at: []const u8,
};

/// 用于编辑文章
pub const ArticleDtoForEdit = struct {
    id: u32,
    title: []const u8,
    description: []const u8,
    content: []const u8,
    istop: u32,
    cate_name: []const u8,
    created_at: []const u8,
    updated_at: []const u8,
};
